package pwd.allen.bio;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;

/**
 * 简单地发个消息
 * @author 门那粒沙
 * @create 2020-02-26 16:21
 **/
public class Client {

    public static void main(String[] args) throws IOException {
        Socket socket = new Socket();
        socket.connect(new InetSocketAddress("127.0.0.1", 1000), 1000);
        socket.getOutputStream().write("dang late god fight!".getBytes());
        socket.close();
    }
}
